// @@filename(menu.service)
import { Injectable, HttpException, HttpStatus } from '@nestjs/common';
// import { Menu } from './dto/menu.dto';
import menuList from './json/menu';
import req from '../common/request';

@Injectable()
export class MenuService {
  getMenu(role: number) {
    if (role) return req.res(menuList);
    else return req.err('不存在id');
    throw new HttpException('Forbidden', HttpStatus.BAD_REQUEST);
  }
}
